Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.platform.localconfiguration.content.view--widgets

This contribution is part of XML component org.nuxeo.ecm.platform.localconfiguration.content.view inside nuxeo-platform-localconfiguration-web-5.8.jar

Extension Point

Extension point widgets of component WebLayoutManager.

Contributed Items

  • <widget name="content_view_selection" type="list">
          <labels>
            <label mode="any">label.local.configuration.content.view.contentViewSelection</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>cvconf:cvNamesByType</field>
          </fields>
          <properties mode="any">
            <property name="hideSubLabels">true</property>
          </properties>
          <subWidgets>
            <widget name="complexListItem" type="complex">
              <labels>
                <label mode="any"/>
              </labels>
              <fields>
                <field/>
              </fields>
              <properties mode="any">
                <property name="hideSubLabels">true</property>
                <property name="display">inline</property>
              </properties>
              <subWidgets>
                <widget name="docType" type="selectOneMenu">
                  <fields>
                    <field>docType</field>
                  </fields>
                  <labels>
                    <label mode="any"/>
                  </labels>
                  <selectOptions>
                    <options itemLabel="#{docType.label}" itemValue="#{docType.value}" value="#{contentViewConfigurationActions.availableDocTypes}" var="docType"/>
                  </selectOptions>
                </widget>
                <widget name="contentView" type="selectOneMenu">
                  <fields>
                    <field>contentView</field>
                  </fields>
                  <labels>
                    <label mode="any"/>
                  </labels>
                  <selectOptions>
                    <options itemLabel="#{contentView.label}" itemValue="#{contentView.value}" value="#{contentViewConfigurationActions.availableContentViews}" var="contentView"/>
                  </selectOptions>
                </widget>
              </subWidgets>
            </widget>
          </subWidgets>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="content_view_selection" type="list">
      <labels>
        <label mode="any">label.local.configuration.content.view.contentViewSelection</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>cvconf:cvNamesByType</field>
      </fields>
      <properties mode="any">
        <property name="hideSubLabels">true</property>
      </properties>
      <subWidgets>
        <widget name="complexListItem" type="complex">
          <labels>
            <label mode="any"/>
          </labels>
          <fields>
            <field/>
          </fields>
          <properties mode="any">
            <property name="hideSubLabels">true</property>
            <property name="display">inline</property>
          </properties>
          <subWidgets>
            <widget name="docType" type="selectOneMenu">
              <fields>
                <field>docType</field>
              </fields>
              <labels>
                <label mode="any"/>
              </labels>
              <selectOptions>
                <options itemLabel="#{docType.label}" itemValue="#{docType.value}" value="#{contentViewConfigurationActions.availableDocTypes}" var="docType"/>
              </selectOptions>
            </widget>
            <widget name="contentView" type="selectOneMenu">
              <fields>
                <field>contentView</field>
              </fields>
              <labels>
                <label mode="any"/>
              </labels>
              <selectOptions>
                <options itemLabel="#{contentView.label}" itemValue="#{contentView.value}" value="#{contentViewConfigurationActions.availableContentViews}" var="contentView"/>
              </selectOptions>
            </widget>
          </subWidgets>
        </widget>
      </subWidgets>
    </widget>

  </extension>